import request from '/@/utils/request';
//删除
export function deleteFile(id?: String) {
  return request({
    url: '/api/general/file/delete/' + id,
    method: 'delete',
  })
}
//下载
export function downLoadFile(Id?:Object){
  return request({
     url: '/api/cloud/file/download/' + Id,
     method: 'get',
     responseType: 'blob',
     headers: {
     }
})
}

//保存
export function saveUpLoadFile(params: object) {screenX
  return request({
      url: '/api/general/file/save',
      method: 'post',
      data: params,
  });
}

//获取
export function getFileList(folderId?: Object) {
  return request({
    url: '/api/system/annex/query/files/' + folderId,
    method: 'get',
  })
}